package com.synergy.stockflow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
    * 枚举值表
    */
@Schema(description="枚举值表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_dict_item")
public class SysDictItem {
    /**
     * 值编号
     */
    @TableId(value = "dict_item_id", type = IdType.INPUT)
    @Schema(description="值编号")
    private Integer dictItemId;

    /**
     * 类型编号
     */
    @TableField(value = "type_id")
    @Schema(description="类型编号")
    private Integer typeId;

    /**
     * 值编码
     */
    @TableField(value = "item_key")
    @Schema(description="值编码")
    private String itemKey;

    /**
     * 值内容
     */
    @TableField(value = "item_value")
    @Schema(description="值内容")
    private String itemValue;

    /**
     * 标签
     */
    @TableField(value = "`label`")
    @Schema(description="标签")
    private String label;

    /**
     * 国际化
     */
    @TableField(value = "`locale`")
    @Schema(description="国际化")
    private String locale;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @Schema(description="排序")
    private Integer sort;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    @Schema(description="状态")
    private Byte status;

    /**
     * 创建人编号
     */
    @TableField(value = "create_by")
    @Schema(description="创建人编号")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者编号
     */
    @TableField(value = "update_by")
    @Schema(description="更新者编号")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description="更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}